
class TokenTest{
	public static void main(String[] args){
			if(trans(args[0])!=0)
			System.out.println(trans(args[0]));
			else 
			System.out.println("Input is Error!");
	}

	static int trans(String num){
		int numTrans = 0;
		switch(num){
			case "one":
				return  1;
		}
/*
		switch(getInt(num)){
			case 1: 
				numTrans = 1;
				break;
			case 2:
			numTrans = 2;
				break;
			case 3:
			numTrans = 3;
				break;
			case 4:
			numTrans = 4;
				break;
			case 5:
			numTrans = 5;
				break;
			case 6:
			numTrans = 6;
				break;
			case 7:
			numTrans = 7;
				break;
			case 8:
			numTrans = 8;
				break;
			case 9:
			numTrans = 9;
				break;
			case 10:
			numTrans = 10;
				break;
		}
		*/
		return numTrans;

	}

	static int getInt(String num){
		if(num.equals("one")) return 1;
		if(num.equals("two")) return 2;
		if(num.equals("three")) return 3;
		if(num.equals("four")) return 4;
		if(num.equals("five")) return 5;
		if(num.equals("six")) return 6;
		if(num.equals("seven")) return 7;
		if(num.equals("eight")) return 8;
		if(num.equals("nine")) return 9;
		if(num.equals("ten")) return 10;
		return 0;
	}
}
